<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	
</body>
<script type="text/javascript">
	//1.九九乘法表
function out(n,k){
 for(i=1;i<=n;i++){
 	 document.write('<h3>');
 	for(j=1;j<=i;j++){
 		document.write('<span>'+j+'×'+i+'='+(j*i)+' </span> ');	
 	}
 	document.write('</h3>');
 }
 for(j=0;j<k;j++){
	document.write('<hr>');
     }
  }

out(8,3);
out(9,9);
</script>
</html>